package cn.htu.javaSong.controller;


import cn.htu.javaSong.common.ResponseModel;
import cn.htu.javaSong.entity.Huya;
import cn.htu.javaSong.entity.WyySong;
import cn.htu.javaSong.service.IHuyaService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author dakai
 * @since 2024-11-06
 */
@RestController
@RequestMapping("/huya")
public class HuyaController {

    @Resource
    private IHuyaService iHuyaService;
    /**
     * 新增
     * @param huya
     * @return
     */
    @PostMapping("/save")
    public ResponseModel addImg(@RequestBody List<Huya> huya) {
        return iHuyaService.addHuyaImg(huya);
    }
}
